<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/1/14
 * Time: 20:22
 */

namespace app\api\controller;
use \think\Controller;
use think\Request;

use think\facade\Cache;
class News extends Controller
{
    public function read(){
        echo "<pre>";
        echo "当前函数名:".__FUNCTION__.PHP_EOL;
        echo "当前方法名:".__METHOD__.PHP_EOL;
        var_dump(\Request::param());die();
    }

    public function write(){
        echo "<pre>";
        echo "当前函数名:".__FUNCTION__.PHP_EOL;
        echo "当前方法名:".__METHOD__.PHP_EOL;
        var_dump(\Request::param());die();
    }
}